package com.ibiaoke.boss.controller;

import com.ibiaoke.common.base.Page;
import com.ibiaoke.common.response.Res;
import com.ibiaoke.customer.entity.DepositRecorder;
import com.ibiaoke.customer.service.DepositRecorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by Administrator on 2017/6/20.
 */
@Controller
public class DepositRecorderController {

    @Autowired
    private DepositRecorderService depositRecorderService;

    /**
     * 查询客户预存款交易记录
     * @param customerMobile
     * @param customerMobile
     * @param page
     * @return
     */
    @ResponseBody
    @RequestMapping("/listDepositRecorder")
    public Res listDepositRecorder(String customerMobile, Page page){
        List<DepositRecorder> depositRecorderList = depositRecorderService.listDepositRecorder(customerMobile,page);
        return Res.create().addResponse("depositRecorderList", depositRecorderList).addResponse("page", page);
    }
}
